
const fs = require('fs');
const path = require('path');
function getText(url) {
  return fs.readFileSync(url).toString();
}
//匹配语法糖
module.exports = function (content, map, meta) {
  const context=this.context;
  content=content.replace(/<!--inline (.+?)-->/g,function (m,p1,p2) {
    return getText(path.join(context,p1))
  })
  content=content.replace(/<!--inline (.+?)-->/g,function (m,p1,p2) {
    return getText(path.join(context,p1))
  })
  return content;
}
